package com.camera.yl.v
import com.alibaba.android.arouter.facade.annotation.Route
import com.bumptech.glide.Glide
import com.camera.base.BaseApp
import com.camera.base.v.BaseActivity
import com.camera.routemodule.RouterPath
import com.camera.yl.R
import com.camera.yl.databinding.ActivityGalleryBinding
import com.camera.yl.v.models.GalleryViewModel
import dagger.hilt.android.AndroidEntryPoint


@AndroidEntryPoint
@Route(path = RouterPath.path.gallery_activity)
class GalleryActivity: BaseActivity<ActivityGalleryBinding, GalleryViewModel>() {
    val TAG = GalleryActivity::class.java.simpleName
//    @Inject
//    lateinit var mSystemNavBarViewModel: SystemNavBarViewModel

    override val viewModelClass: Class<GalleryViewModel>
        get() = GalleryViewModel::class.java
    override fun getLayoutId(): Int {
        return R.layout.activity_gallery
    }
    override fun getStatusBarColor(): Int{
        return R.color.title_background_color
    }
    override fun loadData() {
        mBinding.viewModel = viewModel.systemNavBarViewModel
    }


    override fun initView() {
//        mBinding.pvActivityGallery.setImageResource()
        val path = intent.getStringExtra("path").toString()
        Glide.with(BaseApp.getApplication())
            .load(path)
            .into(mBinding.pvActivityGallery)
    }

    override fun onDestroy() {
        super.onDestroy()
    }
}